﻿<%@ Page Title="" Language="C#" MasterPageFile="~/whatsnew/WhatsNewMasterPage.Master" AutoEventWireup="true" CodeBehind="notice.aspx.cs" Inherits="Com.Web.coffinegurunaru.whatsnew.notice" %>
<%@ Register TagPrefix="UC" TagName="Paging" Src="~/whatsnew/usercontrol/paging.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
<!--body -->
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="33">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="/images/whatsnew/tit_02.gif" width="333" height="49"></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="30" align="right" valign="top"><span class="formmail_cell_bgcolor" style="padding-left:10">
                  <select name='category' id="m_SearchType">
                    <option value="0">제목</option></select> <input type='text' id="m_SearchValue" class='formmail_border' name='add4' maxlength='20' size='20' value='<%=Server.HtmlEncode(this.SearchWord) %>'>
                    <a href="#" id="m_btnSearch"><img src="/images/whatsnew/bt_search.gif" width="38" height="20" align="absmiddle"></a></span></td>
              </tr>
            </table>
<script language="javascript" type="text/javascript">
(function($){
	$(function() {

		$("#m_btnSearch").click(function() {
			var query = "";
			query += "&searchType=" + $("#m_SearchType").val();
			query += $("#m_SearchValue").val() != "" ? "&searchWord=" + encodeURIComponent($.trim($("#m_SearchValue").val())) : "";

			location.href = "notice.aspx?PageNo=1" + query;
		});
	});
})(jQuery);

</script>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="32" background="/images/whatsnew/notice_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="60" align="center"><img src="/images/whatsnew/notice_txt01.gif" width="17" height="11"></td>
                      <td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td align="center"><img src="/images/whatsnew/notice_txt02.gif" width="21" height="11"></td>
                      <td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="120" align="center"><img src="/images/whatsnew/notice_txt03.gif" width="28" height="11"></td>
                      <td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="60" align="center"><img src="/images/whatsnew/notice_txt04.gif" width="20" height="11"></td>
                    </tr>
                  </table></td>
                </tr>
              </table>
              <table border='1' cellpadding='0' cellspacing='0' width='98%' style='border-collapse:collapse' bordercolor='#f5f5f5' frame='void'>
<%	if (List == null || List.Count == 0) { %>
			  <tr>
				<td height="32" align="center">공지사항이 없습니다.</td>
			  </tr>
<%	} else {
		int i = 0;
		foreach(Com.Library.DB.Board.ArticleEntity item in List) {
			int No = CntTotal - ((PageNo - 1) * PageSize) - i;
			i++;
%>
              <tr onclick="location.href='/whatsnew/notice_view.aspx?articlesn=<%= item.n4ArticleSN %>&PageNo=<%= PageNo %>&searchType=<%= SearchType %>&searchWord=<%= SearchWord %>'" style="cursor:pointer">
                <td height="32"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="60" align="center" class="gray_sbold"><%= No %></td>
                    <td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td><%= item.strTitle %></td>
                    <td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="120" align="center" class="small_gray"><%= item.dtCreatedDate.ToString("yyyy-MM-dd") %></td>
                    <td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="60" align="center"><p class="small_gray"><%= item.n4ReadCount %></p></td>
                  </tr>
                </table></td>
              </tr>
<%		}
	} %>
              <tr>
                <td height='2' bgcolor='#f5f5f5'></td>
              </tr>
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="25">&nbsp;</td>
                </tr>
                <tr>
                  <td height="35" align="center"><UC:Paging ID="UC_Paging" runat="server" /></td>
                </tr>
              </table></td>
          </tr>
        </table>
          <!--body 끝 -->
</asp:Content>
